﻿#define _CRT_SECURE_NO_WARNINGS 1
#include"contact.h"
enum option
{
	ADD=1,
	Find,
	Modify,
	Show,
	Clear,
	Sort,
	Exit
};

int main()
{
	menu();
	int input = 0;
	Contact People;
	Initcontact(&People);
	do
	{
		printf("-----请选择对应操作-----\n");
		scanf("%d", &input);
		switch (input)
		{
		case ADD:
			AddContact(&People);
			break;
		case Find:
			SearchContact(&People);
			break;
		case Modify:
			break;
		case Show:
			break;
		case Clear:
			break;
		case Sort:
			break;
		case Exit:
			printf("退出通讯录\n");
			break;
		default:
			printf("非法选择\n");
			break;
		}
	} while (input);


}